﻿using BW.MesProject.Public.ErrorCode;
using BW.MesProject.WareHouse.Domain;
using BW.MesProject.WareHouse.Infrastructure.Dto.Input;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace BW.MesProject.WareHouse.Infrastructure
{
    public interface IDepServices
    {
        /// <summary>
        /// 新增
        /// </summary>
        /// <param name="Dep"></param>
        /// <returns></returns>
        ApiResult<int> AddDep(DEPModel Dep);

        /// <summary>
        /// 查询
        /// </summary>
        /// <param name="qryInput"></param>
        /// <returns></returns>
        ApiResult<List<DEPModel>> GetDep(QryInput qryInput);
        /// <summary>
        /// 根据部门ID进行查询数据
        /// </summary>
        /// <param name="DepId"></param>
        /// <returns></returns>
        ApiResult<DEPModel> GetDepBYId(string DepId);

        /// <summary>
        /// 修改
        /// </summary>
        /// <param name="model"></param>
        /// <returns></returns>
        ApiResult<int> UpdateDep(DEPModel model);

        /// <summary>
        /// 修改状态
        /// </summary>
        /// <param name="model"></param>
        /// <returns></returns>
        ApiResult<int> UpdateEnable(DEPModel model);

        /// <summary>
        /// 删除
        /// </summary>
        /// <param name="Id"></param>
        /// <returns></returns>
        ApiResult<int> UpdateDelete(string Id);

        /// <summary>
        /// 查询编码
        /// </summary>
        /// <param name="DepId"></param>
        /// <returns></returns>
        ApiResult<int> GetDepId(string DepId);
    }
}
